#ifndef __STATION_H__
#define __STATION_H__

#define WIFI_CONNECTED_BIT  BIT0
#define WIFI_FAIL_BIT       BIT1
#define ESPTOUCH_DONE_BIT   BIT2
#define GATT_SET_WIFI       BIT3
#define HTTPS_GET_BIT       BIT4
#define NORMAL_MAXIMUM_RETRY  65535
#define SETWIFI_MAXIMUM_RETRY  5
#define SELFTEST_MAXIMUM_RETRY  3
#define FAST_SCAN_ESP_MAXIMUM_RETRY  0
#define WRITE_ID_SSID "hylgeai_support"
#define WRITE_ID_PWD "HJY888888"
#define DEFAULT_RSSI -50
#define SELFTEST_RSSI -127

extern EventGroupHandle_t s_wifi_event_group;

extern uint8_t station(bool scan_need);
extern void initialise_wifi(void);
extern void smartconfig(void);
extern int8_t get_Wifi_RSSI(void);
extern void set_wifi_config(bool scan_need);
extern void gatt_set_wifi(void);

#endif